<?php
/* Smarty version 3.1.30, created on 2017-11-04 06:27:48
  from "C:\ComsenzEXP\wwwroot\Moodblog\templete\default\viewport.html" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_59fd5de4f106f1_06929858',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '69accfb79e710ff8716d3d8b8bf2df6807feb6f9' => 
    array (
      0 => 'C:\\ComsenzEXP\\wwwroot\\Moodblog\\templete\\default\\viewport.html',
      1 => 1509776866,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_59fd5de4f106f1_06929858 (Smarty_Internal_Template $_smarty_tpl) {
?>
<html>
	<head>
		<title><?php echo $_smarty_tpl->tpl_vars['sitetitle']->value;?>
</title>
		<?php echo '<script'; ?>
 src="ueditor/ueditor.parse.js"><?php echo '</script'; ?>
>
		<?php echo '<script'; ?>
>
			uParse('.text', {
   				 rootPath: 'ueditor/'
			})
			var pagekind = 'viewport';
		<?php echo '</script'; ?>
>
	</head>
	<body onload="getRemark(<?php echo $_smarty_tpl->tpl_vars['article']->value['id'];?>
)">
		<div class="rightContent">
			<div class="article">
				<div class="position">当前位置：<a href="<?php echo $_smarty_tpl->tpl_vars['indexURL']->value;?>
">首页</a> 
					<?php if ($_smarty_tpl->tpl_vars['article']->value['ispage'] == 0) {?>
					>> <a href="<?php echo $_smarty_tpl->tpl_vars['indexURL']->value;?>
index.php?type=<?php echo $_smarty_tpl->tpl_vars['article']->value['kindid'];?>
"><?php if ($_smarty_tpl->tpl_vars['artkind']->value) {
echo $_smarty_tpl->tpl_vars['artkind']->value;
} else { ?>杂记<?php }?></a> 
					>> <a href="<?php echo $_smarty_tpl->tpl_vars['indexURL']->value;?>
view.php?article=<?php echo $_smarty_tpl->tpl_vars['article']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['article']->value['title'];?>
</a></div>
					<?php } else { ?>
					>> <a href="<?php echo $_smarty_tpl->tpl_vars['indexURL']->value;?>
view.php?article=<?php echo $_smarty_tpl->tpl_vars['article']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['article']->value['title'];?>
</a></div>
					<?php }?>
				<div class="text">
					<div class="thetitle">
						<p>CONTENT</p>
					</div>
					<h1 class="artitle"><?php echo $_smarty_tpl->tpl_vars['article']->value['title'];?>
</h1>
					<?php echo $_smarty_tpl->tpl_vars['article']->value['content'];?>

					<div class="info"><?php echo $_smarty_tpl->tpl_vars['article']->value['author'];?>
 <?php echo $_smarty_tpl->tpl_vars['time']->value;?>
 天气 晴</div>
				</div>
				<div class="remark">
					<div class="thetitle">
						<p>REMARKS</p>
					</div>				
					<div class="remarkInput">
						<div class="list">
							<input id = "name" class="remarkText" type='text' placeholder="名称" <?php if ($_smarty_tpl->tpl_vars['user']->value) {?>value="<?php echo $_smarty_tpl->tpl_vars['user']->value['username'];?>
" readonly<?php }?>>
							<input id = "email" class="remarkText" type='text' placeholder="邮箱" <?php if ($_smarty_tpl->tpl_vars['user']->value['email']) {?>value="<?php echo $_smarty_tpl->tpl_vars['user']->value['email'];?>
" readonly<?php }?>>
							<input id = "url" class="remarkText" type='text' placeholder="网址" <?php if ($_smarty_tpl->tpl_vars['user']->value['website']) {?>value="<?php echo $_smarty_tpl->tpl_vars['user']->value['website'];?>
" readonly<?php }?>>
						</div>
						<div class="list">
							<img src="source/head/<?php if ($_smarty_tpl->tpl_vars['user']->value) {
echo $_smarty_tpl->tpl_vars['user']->value['headpic'];
} else { ?>none.png<?php }?>">
							<textarea id="content" placeholder="这里填写评论内容"></textarea>
						</div>
						<div class="list">
							<button type="submit" onclick="submitForm(<?php echo $_smarty_tpl->tpl_vars['article']->value['id'];?>
,'<?php if ($_smarty_tpl->tpl_vars['user']->value['username']) {
echo $_smarty_tpl->tpl_vars['user']->value['username'];
} else {
}?>')">提交</button>
						</div>
					</div>

					<div class="remarkContent">
					<?php if ($_smarty_tpl->tpl_vars['a']->value) {?>
					<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['remark']->value, 'value');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['value']->value) {
?>
							<div class="remarkOne">
								<div class="remarkInfo">
									<img src="source/head/<?php if ($_smarty_tpl->tpl_vars['value']->value['headpic']) {
echo $_smarty_tpl->tpl_vars['value']->value['headpic'];
} else { ?>none.png<?php }?>">
									<a class="name"><?php echo $_smarty_tpl->tpl_vars['value']->value['name'];?>
</a>
									<div class="time">发表于 <?php echo $_smarty_tpl->tpl_vars['value']->value['pubtime'];?>
 </div>
								</div>
								<div class="remarkText">
									<?php echo $_smarty_tpl->tpl_vars['value']->value['content'];?>

								</div>
							</div>
						
					<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

					<?php }?>
					</div>

					<div class="page">
						
					</div>
							
				</div>
				</div>
			</div>
		</div>
	</body>
</html><?php }
}
